package org.pybaldaj.gui;

import javax.swing.*;
/**
 * @author g3n1uss
 * Login window. 
 * Here user connects to the chosen server with specific username and pass or play local game.
 * 
 */
@SuppressWarnings("serial")
public class LoginFrame extends JFrame{

	public LoginFrame(){
		this.buildFrame();
	}
	public void buildFrame(){
		setTitle("Login window");
		setBounds(200,200,350,200);
		setLayout(new BoxLayout(this.getContentPane(), BoxLayout.PAGE_AXIS));
		UserPassPanel userPassPanel=new UserPassPanel();
		userPassPanel.setAlignmentY(CENTER_ALIGNMENT);
		add(userPassPanel);
		ButtonsPanel buttsPanel=new ButtonsPanel();
		buttsPanel.setAlignmentY(CENTER_ALIGNMENT);
		add(buttsPanel);
		InitSettingsPanel initSettsPanel=new InitSettingsPanel();
		initSettsPanel.setAlignmentY(CENTER_ALIGNMENT);
		add(initSettsPanel);

	}

}
